using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class Button : MonoBehaviour
{
    public GameObject Panel;
    //开始游戏
    public void StartGame(){
        SceneManager.LoadScene(1);
    }

    //退出游戏
    public void Quit(){
        Application.Quit();
    }

    //打开设置面板
    public void OpenSettigPanel(){
        Panel.SetActive(true);
    }
    //关闭设置面板
    public void CloseSettingPanel(){
        Panel.SetActive(false);
    }
    //文本显示速度设置
    public void TextReadSpeedSlow(){
        SystemCtrollor.TextReadSpeed = 0.5f;

    }
    public void TextReadSpeedNormal(){
        SystemCtrollor.TextReadSpeed = 0.05f;

    }
    public void TextReadSpeedFast(){
        SystemCtrollor.TextReadSpeed = 0.01f;

    }
    public void TextReadSpeedSuperFast(){
        SystemCtrollor.TextReadSpeed = 0f;

    }
}
